lexer grammar CalculatorLexer;

/*
 * Exercise: Add capability for use to put Java style comments
 * Exercise: Add a new operator (E.g. remainder) 
*/

@header{
  package org.concepts.java.antlr.calculator;
}


INT         : '0'..'9'+;

PLS         :  '+';

MIN         :  '-';

MUL         :  '*';

DIV         :  '/';

LPAREN      :  '(';

RPAREN      :  ')';

WHITESPACE  : (' ' | '\t')+ {skip();};
